MCS_FLAGS = -debug

if LINUX 
MCS_FLAGS += -define:LINUX
endif

if WINDOWS
MCS_FLAGS += -define:WINDOWS
endif

ASSEMBLY_NAME = Dashboard.Engine.Test
ASSEMBLY = $(ASSEMBLY_NAME).exe

dashboarddir = $(pkglibdir)
dashboard_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

ASSEMBLY_REFERENCES = \
	-r:../Dashboard.Engine/Dashboard.Engine.dll \
	-r:../Dashboard.Util/Dashboard.Util.dll \
	-r:../Dashboard/Dashboard.dll \
	$(GTKSHARP_LIBS)

ASSEMBLY_SOURCES = Dashboard.Engine.Test/Driver.cs

$(ASSEMBLY): $(ASSEMBLY_SOURCES)
	$(MCS) $(MCS_FLAGS) -target:exe -out:$@ $(ASSEMBLY_REFERENCES) $(ASSEMBLY_SOURCES)

WRAPPER = dashboard-test
WRAPPER_SOURCE = $(WRAPPER).in
bin_SCRIPTS = $(WRAPPER)

EXTRA_DIST = $(ASSEMBLY_SOURCES) $(WRAPPER_SOURCE)
CLEANFILES = $(ASSEMBLY) $(WRAPPER) *.dll *.exe *.pidb
DISTCLEANFILES = *.mdb
MAINTAINERCLEANFILES = Makefile.in
